package com.mms.action.meeting;

import java.util.List;

import com.mms.dao.MeetingManagementDao;
import com.mms.entity.Meeting;
import com.opensymphony.xwork2.Action;

public class GetMeetingAction implements Action{

	private int startPage;
	List<Meeting> meetingMes;
	private int account;
	
	
	public int getStartPage() {
		return startPage;
	}


	public void setStartPage(int startPage) {
		this.startPage = startPage;
	}


	public List<Meeting> getMeetingMes() {
		return meetingMes;
	}


	public void setMeetingMes(List<Meeting> meetingMes) {
		this.meetingMes = meetingMes;
	}


	public int getAccount() {
		return account;
	}


	public void setAccount(int account) {
		this.account = account;
	}


	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		MeetingManagementDao mmd = new MeetingManagementDao();
		meetingMes = mmd.getMeetingMes(startPage);
		account = mmd.getcount();
		return "success";
	}

}
